import requests
def getLP():
    re=requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                     headers={"Content-Type":"application/json"},
                     json={"mobile":"13800000002","password":"123456"})
    token=re.json().get("data")
    return token

if __name__ == '__main__':
    print(getLP())